package com.zd.certificate.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author hang.xu
 * @date 2020/7/15 16:53
 * 主数据库连接
 */
@Component(value = "primaryProperties")
@Data
@ConfigurationProperties(prefix = "spring.datasource") //这样可以动态的从xml 中获取值 可以可以  宽松配置类
public class PrimaryProperties {

    private String url;
    private String username;
    private String password;
    private String driverClassName;
}
